<!DOCTYPE html>
<html dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
    <head>
        <?php osc_current_web_theme_path('head.php') ; ?>
        <meta name="robots" content="index, follow" />
        <meta name="googlebot" content="index, follow" />
        <script type="text/javascript">
            $(document).ready(function() { 
                $('.nobubble').click(function(event){
                    event.stopImmediatePropagation();
                });
            });
        </script>
    </head>
    <body>
        <?php osc_current_web_theme_path('header.php') ; ?>
        <?php include("v35extra/quickstatistic.php"); ?>
       
        <div class="container margin-top-10" style="display:none;">
            <?php twitter_show_flash_message() ; ?>
        </div>
       
        <!-- content -->
        <div class="container container-fluid" style="margin-bottom:10px;
 box-shadow: 0 -10px 6px -6px #333333; margin-bottom: 10px; z-index: 1111111;">
            
             <div class="btn-toolbar" style="float:left;width:680px;height:80px;background:#FFFFFF;
                                    box-shadow: 0 10px 5px -5px #333;margin-bottom:15px;">     
                    <div class="btn-group" id="menu_categories">
                         <?php while ( osc_has_categories() ) { ?>                                         
                                <a class="btn" href="<?php echo osc_search_category_url() ; ?>" title="<?php echo osc_category_name() ?>">
                                        <img src="<?php echo osc_current_web_theme_url('images/cat/'. osc_category_id() .'.png'); ?>" alt="<?php echo osc_category_slug(); ?>" />
                                        <span><?php //echo osc_category_name(); ?></span>
                                </a>
                          <?php } ?>




<a class="btn" href="#" title="Reserveret til noget">
<img src="<?php echo osc_current_web_theme_url('images/cat/reserv1.png'); ?>" alt="default" /><span><?php //echo osc_category_name(); ?></span>
</a>

<a class="btn" href="#" title="Reserveret til noget">
<img src="<?php echo osc_current_web_theme_url('images/cat/reserv2.png'); ?>" alt="default" /><span><?php //echo osc_category_name(); ?></span>
</a>



                     
                    </div>				
            </div>
            
            <div style="float:right;">
                 <?php osc_current_web_theme_path('ads.php') ; ?>                
                <div class="social_links well-search" style="display:none;">
                    <?php  socialLinks(); ?>
                </div>  
            </div>
            
            <div style="float:left;width:685px;">





<!--START Sven change 300513-->

<?php echo GetAdHome(); ?>

<!--STOP Sven change 300513-->

<?php osc_current_web_theme_path('inc.search.php') ; ?>


<div class="content-left">
                    <div class="container-left latest_ads" style="float:left;width:685px;">
                    <!-- <h3><?php //_e('Latest Vehicles', 'twitter') ; ?></h3>-->
                    		
                    <?php if( osc_count_latest_items() > 0) { ?>

                        <?php $itemCounter = 0;
                        while ( osc_has_latest_items() ) { ?>
                        <div class="latest_item" onclick="location.href='<?php echo osc_item_url(); ?>'" 
                            <?php //if($itemCounter < 11) { echo "style='border-bottom: 1px dotted #cccccc;'"; } ?>>                       
                                          <div class="photo">
                                                 <a href="<?php echo osc_item_url() ; ?>" class="nobubble">
                                                <?php if( osc_count_item_resources() ) { ?>

                                                        <img src="<?php echo osc_resource_thumbnail_url() ; ?>" width="98px" height="75px" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>" />

                                                <?php } else { ?>							
                                                sin fotos
                                                <?php } ?>
                                                 </a>
                                        </div>
                            <div class="description">
                                <?php if (price_format(osc_item_formated_price()) != "") { ?>
                                <span id="pricehome"><?php echo price_format(osc_item_formated_price()) ; ?></span>
                                <?php } ?>
                                               

                            </div>
                        </div>
                        <?php $itemCounter++; } ?>
                        <?php if(false && osc_count_latest_items() == osc_max_latest_items() ) { ?>
                        <div class="row show-all-ads">
                            <div class="span12 columns">
                                <a class="btn primary" href="<?php echo osc_search_show_all_url();?>"><strong><?php _e("See all offers", 'twitter') ; ?> &raquo;</strong></a>
                            </div>
                        </div>
                        <?php } ?>
                    <?php } ?>
                    </div>
                </div>
            </div>
            
           
            
        </div>
		
        <?php osc_current_web_theme_path('footer.php') ; ?>
    </body>
</html>